package org.summerframework.component.upload.file.model.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import org.summerframework.core.base.dto.BaseDO;

import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * file_user_rel
 *
 * @author
 */
@TableName("file_user_rel")
@Data
@EqualsAndHashCode(callSuper = true)
public class FileUserRelDO extends BaseDO {
    private String name;

    private String url;

    private String type;

    private String suffix;

    private Long size;

    private Long userId;

    private Long fileId;

    /**
     * 是否删除(0未删除,1删除)
     */
    @TableLogic
    private Boolean delFlag;

    /**
     * 创建人id
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
